ci: build and upload sdists

modern_python v0.10.6
jaseg 2022-06-12 21:37:31 +02:00
rodzic 0d967895af
commit 9e898ceefb
6 zmienionych plików z 16 dodań i 67 usunięć

Wyświetl plik

@ -1,8 +0,0 @@
[run]
branch = True
source = gerber
[report]
ignore_errors = True
omit =
gerber/tests/*

Wyświetl plik

@ -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

Wyświetl plik

@ -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

12
.pypirc
Wyświetl plik

@ -1,12 +0,0 @@
[distutils]
index-servers =
pypi
testpypi
[pypi]
username = __token__
password = ${env.PYPI_TOKEN}
[testpypi]
username = __token__
password = ${env.TESTPYPI_TOKEN}

13
MANIFEST.in 100644
Wyświetl plik

@ -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

Wyświetl plik

@ -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': [