From 9e898ceefbc228bbfbdf81d793fb158a8a4876ca Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 12 Jun 2022 21:37:31 +0200 Subject: ci: build and upload sdists --- .coveragerc | 8 -------- .github/workflows/pcb-tools.yml | 45 ----------------------------------------- .gitlab-ci.yml | 4 ++-- .pypirc | 12 ----------- MANIFEST.in | 13 ++++++++++++ setup.py | 1 + 6 files changed, 16 insertions(+), 67 deletions(-) delete mode 100644 .coveragerc delete mode 100644 .github/workflows/pcb-tools.yml delete mode 100644 .pypirc create mode 100644 MANIFEST.in diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 3399dbe..0000000 --- a/.coveragerc +++ /dev/null @@ -1,8 +0,0 @@ -[run] -branch = True -source = gerber - -[report] -ignore_errors = True -omit = - gerber/tests/* diff --git a/.github/workflows/pcb-tools.yml b/.github/workflows/pcb-tools.yml deleted file mode 100644 index feb0a74..0000000 --- a/.github/workflows/pcb-tools.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: pcb-tools - -on: [push, pull_request] - -jobs: - test: - strategy: - fail-fast: false - matrix: - python-version: [3.5, 3.6, 3.7, 3.8] - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - pip install -r requirements-dev.txt - - name: Test with pytest - run: | - pytest - coverage: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install dependencies - run: | - pip install -r requirements-dev.txt - - name: Run coverage - run: | - make test-coverage - - uses: codecov/codecov-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ./coverage.xml - flags: unittest diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a14ed8f..08d8d86 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,11 +15,11 @@ build:archlinux: script: - git config --global --add safe.directory "$CI_PROJECT_DIR" - pip3 install --user wheel - - python3 setup.py bdist_wheel + - python3 setup.py sdist bdist_wheel artifacts: name: "gerbolyze-$CI_COMMIT_REF_NAME-gerbonara" paths: - - dist/*.whl + - dist/* #test:archlinux: # stage: test diff --git a/.pypirc b/.pypirc deleted file mode 100644 index 6fc43db..0000000 --- a/.pypirc +++ /dev/null @@ -1,12 +0,0 @@ -[distutils] -index-servers = - pypi - testpypi - -[pypi] -username = __token__ -password = ${env.PYPI_TOKEN} - -[testpypi] -username = __token__ -password = ${env.TESTPYPI_TOKEN} diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..3982e6a --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,13 @@ +global-exclude * + +include README.md +include LICENSE +include MANIFEST.in +include setup.py +graft gerbonara +graft docs +graft examples + +prune gerbonara/tests +prune **/__pycache__ +prune docs/_build diff --git a/setup.py b/setup.py index b6e2172..fc38aa0 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup( 'Tracker': 'https://gitlab.com/gerbolyze/gerbonara/issues', }, packages=find_packages(exclude=['tests']), + exclude_package_data={'gerbonara': ['.gitignore']}, install_requires=['click'], entry_points={ 'console_scripts': [ -- cgit