Skip to content

Commit c77c2ae

Browse files
dwighthubbarddhubbard
and
dhubbard
authored
Add CI/CD Pipeline to publish the package to the Python pypi repos (#2)
* Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. * Initial version for pypi package - Changed code to set version in safecache/__init__.py to fetch the version from the package metadata. - Removed version.py since it only contained the version that is now stored in the package metadata - Added a pyproject.toml file so the package complies with pep508 - Added a screwdriver.yaml file with the CI/CD configuration, the configuration has the following: - Validation jobs to run validations, there is one job per validation so Pull Requests will show what validation failed. - Versioning job to assign the version based on the version in the setup.cfg with the revision updated based on the CI Pipeline build id. - Job to publish to the test.pypi.org public test repository. - Functional test job that installs the package from the test repository and reruns the tests. - Publish job to publish to the main pypi.org repository if all the validations and the functional test pass. - Added a tox.ini to allow running the tests locally using the tox utility the same as the CI Pipeline uses. Co-authored-by: dhubbard <[email protected]>
1 parent ebddcc2 commit c77c2ae

13 files changed

+704
-40
lines changed

.coveragerc

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright 2020 Verizon Inc.
2+
# Licensed under the terms of the Apache License 2.0.
3+
# See LICENSE file in project root for terms.
4+
[run]
5+
parallel = True
6+
branch = False
7+
cover_pylib = False
8+
source = src
9+
10+
[report]
11+
ignore_errors = True
12+
exclude_lines =
13+
pragma: no cover
14+
^def test_
15+
16+
# Don't complain about missing debug-only code:
17+
def __repr__
18+
if self\.debug
19+
20+
# Don't complain if tests don't hit defensive assertion code:
21+
raise AssertionError
22+
raise NotImplementedError
23+
24+
# Don't complain if non-runnable code isn't run:
25+
if 0:
26+
if __name__ == .__main__.:
27+
28+
[paths]
29+
source =
30+
src/screwdrivercd
31+
.tox/py*/lib/python*/site-packages/screwdrivercd
32+
33+
# precision = 1
34+
show_missing = True

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ dist/
88
.mypy_cache/
99
.venv/
1010
.tox/
11+
.coverage

0 commit comments

Comments
 (0)