-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### Summary `setup.py` based builds are being deprecated in favor of `pyproject.toml` based builds. This PR migrates the project from setup.py to pyproject.toml. One big benefit is that we will now no longer need to file PRs to bump release versions in setup.py. ### Related issues #1016 ___ Read through our [developer docs](https://lyft.github.io/cartography/dev/developer-guide.html) - [x] PR Title starts with "Fixes: [issue number]" --------- Signed-off-by: Alex Chantavy <[email protected]> Co-authored-by: Chandan <[email protected]> Co-authored-by: Alex Chantavy <[email protected]>
- Loading branch information
1 parent
9c31e9e
commit a91c828
Showing
6 changed files
with
113 additions
and
109 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
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,105 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools", | ||
"setuptools-scm", | ||
"wheel" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
# See configuration details in https://github.com/pypa/setuptools_scm | ||
write_to = "cartography/_version.py" | ||
|
||
[project] | ||
name = "cartography" | ||
description = "Explore assets and their relationships across your technical infrastructure." | ||
readme = "README.md" | ||
license = {text = "apache2"} | ||
maintainers = [ | ||
{ name = "Cartography Contributors" } | ||
] | ||
classifiers = [ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Natural Language :: English', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.10', | ||
'Topic :: Security', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
] | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"backoff>=2.1.2", | ||
"boto3>=1.15.1", | ||
"botocore>=1.18.1", | ||
"dnspython>=1.15.0", | ||
"neo4j>=4.4.4,<5.0.0", | ||
"policyuniverse>=1.1.0.0", | ||
"google-api-python-client>=1.7.8", | ||
"oauth2client>=4.1.3", | ||
"marshmallow>=3.0.0rc7", | ||
"oci>=2.71.0", | ||
"okta<1.0.0", | ||
"pyyaml>=5.3.1", | ||
"requests>=2.22.0", | ||
"statsd", | ||
"packaging", | ||
"python-digitalocean>=1.16.0", | ||
"adal>=1.2.4", | ||
"azure-cli-core>=2.26.0", | ||
"azure-mgmt-compute>=5.0.0", | ||
"azure-mgmt-resource>=10.2.0", | ||
"azure-mgmt-cosmosdb>=6.0.0", | ||
"msrestazure >= 0.6.4", | ||
"azure-mgmt-storage>=16.0.0", | ||
"azure-mgmt-sql<=1.0.0", | ||
"azure-identity>=1.5.0", | ||
"kubernetes>=22.6.0", | ||
"pdpyras>=4.3.0", | ||
"crowdstrike-falconpy>=0.5.1", | ||
"python-dateutil", | ||
"xmltodict", | ||
"duo-client", | ||
] | ||
# Comes from Git tag | ||
dynamic = [ "version" ] | ||
|
||
# TODO when moving to uv or something other than pip, move this to [dependency-groups].dev. | ||
[project.optional-dependencies] | ||
dev = [ | ||
"backoff>=2.1.2", | ||
"moto", | ||
"pre-commit", | ||
"pytest>=6.2.4", | ||
"pytest-mock", | ||
"pytest-cov==2.10.0", | ||
"pytest-rerunfailures", | ||
"types-PyYAML", | ||
"types-requests<2.31.0.7", | ||
] | ||
|
||
# Makes sure to look inside cartography/cartography/ for cli command | ||
[tool.setuptools.packages.find] | ||
where = ["."] | ||
include = ["cartography*"] | ||
|
||
[project.scripts] | ||
cartography = "cartography.cli:main" | ||
cartography-detectdrift = "cartography.driftdetect.cli:main" | ||
|
||
[tool.setuptools.package-data] | ||
"cartography" = ["py.typed"] | ||
"cartography.data" = ["*.cypher", "*.yaml"] | ||
"cartography.data.jobs.analysis" = ["*.json"] | ||
"cartography.data.jobs.scoped_analysis" = ["*.json"] | ||
"cartography.data.jobs.cleanup" = ["*.json"] | ||
|
||
[project.urls] | ||
Homepage = "https://cartography-cncf.github.io/cartography" | ||
Documentation = "https://cartography-cncf.github.io/cartography" | ||
Repository = "https://github.com/cartography-cncf/cartography" | ||
Issues = "https://github.com/cartography-cncf/cartography/issues" | ||
Changelog = "https://github.com/cartography-cncf/cartography/releases" |
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,90 +1,4 @@ | ||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
__version__ = '0.98.0rc2' | ||
|
||
|
||
setup( | ||
name='cartography', | ||
version=__version__, | ||
description='Explore assets and their relationships across your technical infrastructure.', | ||
long_description='file: README.md', | ||
long_description_content_type='text/markdown', | ||
url='https://www.github.com/cartography-cncf/cartography', | ||
maintainer='Cartography Contributors', | ||
license='apache2', | ||
packages=find_packages(exclude=['tests*']), | ||
package_data={ | ||
'cartography': ['py.typed'], | ||
'cartography.data': [ | ||
'*.cypher', | ||
'*.yaml', | ||
], | ||
'cartography.data.jobs.analysis': [ | ||
'*.json', | ||
], | ||
'cartography.data.jobs.scoped_analysis': [ | ||
'*.json', | ||
], | ||
'cartography.data.jobs.cleanup': [ | ||
'*.json', | ||
], | ||
}, | ||
dependency_links=[], | ||
install_requires=[ | ||
"backoff>=2.1.2", | ||
"boto3>=1.15.1", | ||
"botocore>=1.18.1", | ||
"dnspython>=1.15.0", | ||
"neo4j>=4.4.4,<5.0.0", | ||
"policyuniverse>=1.1.0.0", | ||
"google-api-python-client>=1.7.8", | ||
"oauth2client>=4.1.3", | ||
"marshmallow>=3.0.0rc7", | ||
"oci>=2.71.0", | ||
"okta<1.0.0", | ||
"pyyaml>=5.3.1", | ||
"requests>=2.22.0", | ||
"statsd", | ||
"packaging", | ||
"python-digitalocean>=1.16.0", | ||
"adal>=1.2.4", | ||
"azure-cli-core>=2.26.0", | ||
"azure-mgmt-compute>=5.0.0", | ||
"azure-mgmt-resource>=10.2.0", | ||
"azure-mgmt-cosmosdb>=6.0.0", | ||
"msrestazure >= 0.6.4", | ||
"azure-mgmt-storage>=16.0.0", | ||
"azure-mgmt-sql<=1.0.0", | ||
"azure-identity>=1.5.0", | ||
"kubernetes>=22.6.0", | ||
"pdpyras>=4.3.0", | ||
"crowdstrike-falconpy>=0.5.1", | ||
"python-dateutil", | ||
"xmltodict", | ||
"duo-client", | ||
], | ||
extras_require={ | ||
':python_version<"3.7"': [ | ||
"importlib-resources", | ||
], | ||
}, | ||
entry_points={ | ||
'console_scripts': [ | ||
'cartography = cartography.cli:main', | ||
'cartography-detectdrift = cartography.driftdetect.cli:main', | ||
], | ||
}, | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Natural Language :: English', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.10', | ||
'Topic :: Security', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
], | ||
) | ||
setup() |
This file was deleted.
Oops, something went wrong.