mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Transition from setup.py to setup.cfg
This commit is contained in:
4
tools/scripts/scm_version.py
Normal file
4
tools/scripts/scm_version.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from setuptools_scm import get_version
|
||||
|
||||
version = get_version(root='../..', relative_to=__file__)
|
||||
print(version)
|
||||
20
tools/scripts/setup.py
Executable file
20
tools/scripts/setup.py
Executable file
@@ -0,0 +1,20 @@
|
||||
# This file only exists for the purposes of generating the development environment's awx.egg-info file
|
||||
# because pip install -e is painfully slow. If anyone finds a better way to do this, I'll buy you a drink.
|
||||
|
||||
import setuptools
|
||||
from setuptools.command.egg_info import egg_info as _egg_info
|
||||
|
||||
|
||||
class egg_info_dev(_egg_info):
|
||||
def find_sources(self):
|
||||
# when we generate a .egg-info for the development
|
||||
# environment, it's not really critical that we
|
||||
# parse the MANIFEST.in (which is actually quite expensive
|
||||
# in Docker for Mac)
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
setuptools.setup(
|
||||
cmdclass={'egg_info_dev': egg_info_dev},
|
||||
)
|
||||
Reference in New Issue
Block a user