-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from bradmwilliams/packaging-modernization-v1
[v1] Converting to modern python packaging
- Loading branch information
Showing
7 changed files
with
93 additions
and
95 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
test: | ||
./run_unittests.sh | ||
.PHONY: test | ||
|
||
clean: | ||
rm -rf dist packages/openshift_client.egg-info packages/openshift_client/__pycache__ build | ||
.PHONY: clean | ||
|
||
release: clean | ||
python -m build | ||
.PHONY: release | ||
|
||
publish-testpypi: | ||
twine upload --repository testpypi dist/* | ||
.PHONY: publish-testpypi | ||
|
||
publish-pypi: | ||
twine upload --repository pypi dist/* | ||
.PHONY: publish-pypi |
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,50 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["packages"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "openshift.__VERSION__"} | ||
|
||
[project] | ||
name = "openshift-client" | ||
description = "OpenShift python client" | ||
keywords = ["OpenShift"] | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
authors = [ | ||
{name = "Justin Pierce", email = "[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Brad Williams", email = "[email protected]"}, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Utilities", | ||
] | ||
requires-python = ">= 2.7" | ||
dependencies = [ | ||
"pyyaml", | ||
"six", | ||
] | ||
dynamic = [ | ||
"version", | ||
] | ||
|
||
[project.optional-dependencies] | ||
ssh = ["paramiko"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/openshift/openshift-client-python" | ||
Issues = "https://github.com/openshift/openshift-client-python/issues" |
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,5 +1,7 @@ | ||
# | ||
# This file can be used to install dependencies for local library development | ||
# | ||
build | ||
six | ||
pyyaml | ||
|
||
# paramiko is only required if ssh connections are required (e.g. use of client_host context) | ||
paramiko | ||
paramiko |