Project

Profile

Help

Pulp Python Roadmap » History » Sprint/Milestone 23

amacdona@redhat.com, 04/15/2019 06:22 PM

1 1 dalley
# Pulp Python Roadmap
2
3 14 amacdona@redhat.com
Legend:  
4
(Red, undecided)  
5
(Yellow, decided- needs story)  
6
(blue, decided with story)  
7
(Black - Finished bc green is hard to read)
8
9 9 dalley
~~~
10 8 dalley
This is a living document that is moving towards a long term plan to develop pulp_python 3.0 and beyond.
11 6 dalley
~~~
12 1 dalley
13 22 bizhang
## Pulp Python 3.0 Use Cases
14 1 dalley
15 14 amacdona@redhat.com
### Synced Package Index use case:
16 13 bizhang
17 19 amacdona@redhat.com
As a user, I can configure an importer to sync a list of projects \[#2884\]
18 2 dalley
19 19 amacdona@redhat.com
  - Syncing a project includes all releases
20
  - Syncing a release includes all distribution packages (all types)
21 23 amacdona@redhat.com
  - <span style="color:blue;">Synced packages can be verified based on digest (md5 from pypi, sha512 Pulp)</span> \[#3613\]
22 1 dalley
  - I can specify sync mode to be either additive or mirror
23 23 amacdona@redhat.com
  - {color:blue} I can sync all projects from a package index \[#985\]
24
  - {color:blue} I can sync the metadata of projects and defer the download of packages (lazy sync) \[#1884\]
25
  - Blacklist: As a user, I can disinclude some content of a project by version specifiers and digests
26
  - Whitelist (Curated Package index Use Case) As a user, I can sync packages that reproduce a specific environment by version specifiers and digests
27 1 dalley
28
### Publish Use Case:
29
30 23 amacdona@redhat.com
As a user, I can publish a repository (Published projects will include all releases and distributions)
31 1 dalley
32
  - Published Python Content Units are consumable by pip \[#2885\]
33 23 amacdona@redhat.com
  - {color:blue} Published Python Content Units are consumable by pipenv \[#4686\]
34
  - {color:blue} I can published projects are consumable by other Pulp instances \[#2886\]
35 1 dalley
36
### Upload Use Case:
37 19 amacdona@redhat.com
38 23 amacdona@redhat.com
As a user, I can upload individual distribution packages (name, version, platform) \[#3197\]
39 19 amacdona@redhat.com
40
  - As a user I can upload all types (egg, wheel, sdist)
41 23 amacdona@redhat.com
  - {color:blue} As a user, I can upload and create a PythonPackageContent in a single call (one-shot upload)
42 1 dalley
43
### As a user I have documentation that covers all above in this format:
44
45 19 amacdona@redhat.com
  - Quickstart 
46
      - Installation
47 23 amacdona@redhat.com
      - upload \[#3212\]
48
      - sync \[#3213\]
49 19 amacdona@redhat.com
      - {color:blue} publish \[#3214\]
50 23 amacdona@redhat.com
  - REST API Reference
51
  - Build and host docs \[#3215\]
52 16 bizhang
53 1 dalley
## Pulp Python 3.1+ Use Cases
54 16 bizhang
55 1 dalley
### Upload Use Case:
56 14 amacdona@redhat.com
57
> A twine user can publish a distribution package to Pulp \[#2887\]
58
59 16 bizhang
### Migrations:
60 14 amacdona@redhat.com
61
> As a user, I can migrate Pulp2 packages to Pulp3 in-place. \[#2888\]
62
63
### Cache Use Case:
64 16 bizhang
65
> As a user, I can use Pulp as a PyPI cache.
66 2 dalley
67 14 amacdona@redhat.com
### Granular Sync
68 4 dalley
69 1 dalley
> Blacklist: As a user, I can disinclude some content of a project
70 23 amacdona@redhat.com
71
~~\>\> By specifying (release, distribution package)~~ (Included in 3.0)
72
73 11 bizhang
>> I can disinclude content by distribution type
74 23 amacdona@redhat.com
75
~~\> Whitelist (Curated Package index Use Case) As a user, I can sync packages that reproduce a specific environment~~ (Included in 3.0)
76
77 1 dalley
>> From the output of pip freeze (loose use case)  
78
>> With the name, exact versions, and distribution type (tight use case)
79
80
## Glossary:
81
82
### Project
83
84
> A library, framework, script, plugin, application, or collection of data or other resources, or some combination thereof that is intended to be packaged into a Distribution.  
85 2 dalley
> \[ https://packaging.python.org/glossary/#term-project \]
86 1 dalley
87
### Package Index:
88
89
> A repository of distributions with a web interface to automate package discovery and consumption. (this should align to a pulp repo). A Package Index is assumed to implement the PyPI APIs
90
91
### Release
92
93
> A snapshot of a Project at a particular point in time, denoted by a version identifier.  
94 5 dalley
> Making a release may entail the publishing of multiple Distributions. For example, if version 1.0 of a project was released, it could be available in both a source distribution format and a Windows installer distribution format.
95
96 1 dalley
### Distribution Package
97
98
> "Distribution" for short. If we mean linux, we will say "distro"  
99
> A versioned archive file that contains Python packages, modules, and other resource files that are used to distribute a Release. The archive file is what an end-user will download from the internet and install. A project may contain many releases, and releases may contain many distribution packages. Can be type sdist, bdist, etc. "Distribution package" is used instead of "package" to avoid confusion with "import packages" or linux "distributions".
100
101
## Relevant PEPs:
102
103
  - https://www.python.org/dev/peps/pep-0241/ Final (Original Metadata)
104
  - https://www.python.org/dev/peps/pep-0301/ Final (HTTP API)
105
  - https://www.python.org/dev/peps/pep-0314/ Final (Metadata 1.1)
106
  - https://www.python.org/dev/peps/pep-0345/ Accepted (Metadata 1.2)
107
  - https://www.python.org/dev/peps/pep-0427/ Accepted (Wheel 1.0) 
108
  - https://www.python.org/dev/peps/pep-0491/ Draft (Wheel 1.9)
109
  - https://www.python.org/dev/peps/pep-0426/ Deferred (Metadata 2.0)
110
  - https://www.python.org/dev/peps/pep-0459/ Deferred (Standard Metadata Extensions)
111
  - https://www.python.org/dev/peps/pep-0503/ Accepted (Simple API)
112
  - https://www.python.org/dev/peps/pep-0508/ Active (Dep specification)