Skip to content

Commit

Permalink
Merge pull request #10 from renefritze/setup_refactor
Browse files Browse the repository at this point in the history
simplify package setup
  • Loading branch information
renefritze authored Dec 22, 2022
2 parents 6f2835a + e753620 commit 6f594fc
Show file tree
Hide file tree
Showing 13 changed files with 71 additions and 2,629 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
# Update Github actions in workflows
- package-ecosystem: "github-actions"
directory: "./.github"
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "./"
schedule:
interval: "weekly"
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
pip install -e .
pip install -e .[dev]
- name: Test with pytest
run: |
pip install pytest
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -r requirements_dev.txt
pip install -e .[dev]
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ ENV/
# mypy
.mypy_cache/
.idea

# setuptools_scm
pypi_oldest_requirements/_version.py
23 changes: 0 additions & 23 deletions Pipfile

This file was deleted.

6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
# the built documents.
#
# The short X.Y version.
version = pypi_oldest_requirements.__version__
# The full version, including alpha/beta/rc tags.
release = pypi_oldest_requirements.__version__
from importlib.metadata import version

version = release = version("pypi_oldest_requirements")

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
9 changes: 5 additions & 4 deletions pypi_oldest_requirements/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

__author__ = """René Fritze"""
__email__ = "rene.fritze@wwu.de"
__version__ = "2020.4.2"

from ._version import get_versions
from importlib.metadata import version, PackageNotFoundError

__version__ = get_versions()["version"]
del get_versions
try:
__version__ = version("pypi_oldest_requirements")
except PackageNotFoundError:
__version__ = "unknown version"
Loading

0 comments on commit 6f594fc

Please sign in to comment.