This tool reads in one or more python requirements files and generates
a list of distribution specific package names the intent is to use it
something like:
sudo ${package_manager} install $(deps2pkg -r requirements.txt -b)
sudo pip install .
To install a python project that runs against the distribution provided
pagages rather than pypi wheels/dists
Change-Id: Icd0720311e7863190b84aa916f13e7efa830a4eb
This makes pypkg2mod more like a conventional library/module by moving
the cli code into it's own module. Making room for additional command
line interfaces
Change-Id: If15b85ac3230adf9cf2bc8a9c1c7a9ac9f31eda9
Get away from wrnings like:
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead
Change-Id: Ib111b58bd7ac79cecc5a5b3dd480942e8a516cb7
While using pymod2pkg on Red Hat's Openstack Platform, I discovered that
some package rules are incorrect for RHEL, and Fedora. This change
updates these packages for the current mapping.
No attempt has been made to address if the packages *may* have had
different names in older Red hat ecosystem releases
Change-Id: Ib8dec98db572b005b6a6c0c9cbd4d7d8f45a3aba
In validating the change after this I found that:
1. The pypy tox env defaults to pypy2 which obviously is a problem
2. The constraints URL, while functional, follows an older more complex form
3. The pep8 tox env would descend into .tox which fails as packages
outside of out control may have pep8 issues
4. I often have a .venv directory which fails for the same reason as
point 3
This change addresses those issues suck that a `tox` run completes as
expected.
Change-Id: Ia64b5f7b69744ede12604bfd204ae0cbdb6aeea2
The generic translation rules
def openstack_prefix_tr(mod):
def rdo_horizon_plugins_tr(mod):
def suse_horizon_plugins_tr(mod):
Only have return values for pyvers=py, Update the rules to return the
same pkg regardless of pyversion.
This way:
for pyver in py py2 py3 ; do
pymod2pkg --dist xx --pyver $pyver Tempest
done
returns openstack-tempest for all python versions
Change-Id: I73a49916e2b2898cb31d8cfd68e25b94d39b1934
CentOS is currently distributing python3-suds in its repos, so we'll
keep that for the time being.
Change-Id: I5e7cf1364aeed41d713e35adc353e9224abef20c
The current lower-constraints job is failing due to an issue with
the pip resolver and the docutils minimum version. This commit should
fix that.
Change-Id: I05e53e3ae5065f443903698754ecce7e3fcf489d
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: Ia09a198905ef04b5ea0c2dac440882c45d8b147c
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg:
* Wheel is not needed for python 3 only repo
* Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore
Change-Id: I1251a9904fcc146ec615ba2c7f93a1b675e3220f
Python 3.8 removed the linux_distribution support, we need
to switch to the distro package.
To pass testing, we need to update to a newer flake8 version.
Also update setuptools annotation since Python 2.x support
has been dropped.
Change-Id: I40768af80ff376866b1070026a93fd3f4bb1c2e4
unittest2 was needed for compatibility with python <= 2.6, so we have
not needed this for quite some time now. See unittest2 note on:
https://docs.python.org/2.7/library/unittest.html
This drops the use of unittest2 in favor of the standard unittest
package.
Change-Id: I46ec317f0ee43ff95d8af1aa68b8d0596dc4dd35
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
- openstack-placement maps to placement in the openstack repos
- openstacksdk now maps to the same name
Change-Id: I9f5dd0300c6fb9eb21784bc98971a06294826273
The Fedora package for sphinxcontrib-svg2pdfconverter is split into
two main packages: sphinxcontrib-rsvgconverter and
sphinxcontrib-inkscapeconverter, with a -common subpackage for common
assets. For the OpenStack use case, we want to use the rsvg-based
converter.
Change-Id: I0918126db3f5bf51f2bc327663065b9a6933b6da
We currently have Tempest (uppercase T) but the pypi name is really
tempest (lowercase t).
So support both (upper/lower case) for now.
Change-Id: I0b74f9f79a8610d23912334310f148f2915f3f4d
The pypi name for OpenStack Placement is openstack-placement. This
name must not be translated (so the result is openstack-placement).
Change-Id: Ic47a0a5b66f23d0fb37364d79e7a61a9e6dcca8a