summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.coveragerc8
-rw-r--r--.github/workflows/pcb-tools.yml45
-rw-r--r--.gitlab-ci.yml4
-rw-r--r--.pypirc12
-rw-r--r--MANIFEST.in13
-rw-r--r--setup.py1
6 files changed, 16 insertions, 67 deletions
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': [