-
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This gets rid of the tricky setup.py setuptools and wheel bootstrapping we were doing using pex vendored versions and gives us non-deprecated publishing support. In the course of adding a pyproject.toml for flit, also update pex distribution metadata to officially support Python 3.8 with 1 test tweak. CI for Python 3.8 will come in a follow-up change. Fixes #805 Fixes #807
- Loading branch information
Showing
10 changed files
with
127 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[build-system] | ||
requires = ["flit_core >=2,<3"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[tool.flit.metadata] | ||
module = "pex" | ||
author = "The PEX developers" | ||
author-email = "pantsbuild@gmail.com" | ||
home-page = "https://github.com/pantsbuild/pex" | ||
description-file = "README.rst" | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: Unix", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
] | ||
requires-python = ">=2.7,<3.9,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*" | ||
|
||
[tool.flit.metadata.requires-extra] | ||
# For improved subprocess robustness under python2.7. | ||
subprocess = ["subprocess32>=3.2.7"] | ||
|
||
[tool.flit.scripts] | ||
pex = "pex.bin.pex:main" | ||
|
||
[tool.flit.entrypoints."distutils.commands"] | ||
# Make bdist_pex available for folks who install the pex distribution. | ||
bdist_pex = "pex.commands.bdist_pex:bdist_pex" | ||
|
||
[tool.flit.sdist] | ||
include = ["CHANGES.rst"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
from __future__ import absolute_import, print_function | ||
|
||
import sys | ||
|
||
import pytest | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +0,0 @@ | ||
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
import os | ||
|
||
|
||
# We may be executed from outside the project dir: `python pex/setup.py ...`, so ensure the | ||
# `setup.py` dir is on the path and we're working from here so that dist/ and build/ dirs get | ||
# created here and all files indicated by MANIFEST.in are found. | ||
__HERE = os.path.realpath(os.path.dirname(__file__)) | ||
os.chdir(__HERE) | ||
|
||
|
||
with open(os.path.join(__HERE, 'README.rst')) as fp: | ||
LONG_DESCRIPTION = fp.read() + '\n' | ||
|
||
|
||
with open(os.path.join(__HERE, 'CHANGES.rst')) as fp: | ||
LONG_DESCRIPTION += fp.read() | ||
|
||
|
||
from pex import third_party | ||
third_party.install(expose=['setuptools', 'wheel']) | ||
|
||
|
||
from pex.third_party.setuptools import find_packages, setup | ||
from pex.commands.bdist_pex import bdist_pex | ||
from pex.version import __version__ | ||
|
||
|
||
setup( | ||
name='pex', | ||
version=__version__, | ||
description="The PEX packaging toolchain.", | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type="text/x-rst", | ||
url='https://github.com/pantsbuild/pex', | ||
license='Apache License, Version 2.0', | ||
zip_safe=False, | ||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Operating System :: Unix', | ||
'Operating System :: POSIX :: Linux', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
], | ||
packages=find_packages(), | ||
include_package_data=True, | ||
extras_require={ | ||
# For improved subprocess robustness under python2.7. | ||
'subprocess': ['subprocess32>=3.2.7'], | ||
}, | ||
cmdclass={'bdist_pex': bdist_pex}, # Make bdist_pex available for _this_ setup.py. | ||
entry_points={ | ||
'distutils.commands': [ | ||
# Make bdist_pex available for folks who install the pex distribution. | ||
'bdist_pex = pex.commands.bdist_pex:bdist_pex', | ||
], | ||
'console_scripts': [ | ||
'pex = pex.bin.pex:main', | ||
], | ||
}, | ||
) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.