-
Notifications
You must be signed in to change notification settings - Fork 5
add pyproject support #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
7381c27
add pipfile.lock so that dependabot can detect versions
2cf81c2
Update GitHub Actions runner to ubuntu-latest
clarktr1 90a8795
Update test.yml
clarktr1 adb632a
update sphinx for tests
b1eadd7
update requirements
17137a1
update sphinx config
4589719
disable pytest plugins
d00e659
update test dependencies
aede59a
update tox
477e3c9
update more tox configs to allow runtests
50f920c
change tox config once again...
cc1badd
change tox config once again....
b39895d
change tox config once again.....
d3f317e
remove Pipfiles and update docs yaml
3dd364c
adjust versions to not be as strict within range
82db193
add pyproject&poetry with updated docker commands
f92f5af
small change to pyprpoject and readme
d537905
remove poetry from pyproject and allow pip can handle dependencies o…
385a800
add lockfile
a749b00
lock poetry version, change install for docker to pip
d50c191
remove poetry from docker
9aa5b99
remove deprecated version header & add optional dependencies to install
2ee97e7
apparently version is not deprecated
6bd0d97
adjust tox deps groups
6c799fd
remove poetry
80aa7ad
remove poetry lock
3c3c1b8
remove path and curl install
89e514e
adjust contributors
7357459
add test for version checking, update readme, remove redundant steps …
18d8b94
adjust capitalization to check git author
clarktr1 adfd1ca
fix README wording and adjust version assertion
clarktr1 c2357f7
update readme with readthedocs link, add pytest-cov min version
clarktr1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| version: 2 | ||
| build: | ||
| os: "ubuntu-20.04" | ||
| os: "ubuntu-latest" | ||
| tools: | ||
| python: "3.9" | ||
| apt_packages: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,18 @@ | ||
| # vim: set ft=conf | ||
|
|
||
| FROM python:3.9 | ||
|
|
||
| ENV PYTHONUNBUFFERED 1 | ||
| ENV PYTHONPATH /app | ||
| ENV PYTHONDONTWRITEBYTECODE 1 | ||
|
|
||
| RUN apt-get update -qq && \ | ||
| apt-get install -y mariadb-server mariadb-client libmariadb-dev-compat libmariadb-dev libssl-dev | ||
| RUN mkdir /app | ||
| apt-get install -y \ | ||
| mariadb-server mariadb-client \ | ||
| libmariadb-dev-compat libmariadb-dev libssl-dev | ||
|
|
||
| WORKDIR /app | ||
| ADD requirements/ /app/requirements/ | ||
| ADD requirements.txt /app/ | ||
| RUN pip install -r requirements.txt | ||
|
|
||
| # Copy project files | ||
| COPY . /app/ | ||
|
|
||
| # Install dependencies | ||
| RUN pip install .'[dev,test,codestyle]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| include LICENSE | ||
| include *.txt *.md | ||
| recursive-include name/templates * | ||
| recursive-include name/static * | ||
| include *.txt | ||
| recursive-include name/templates * | ||
| recursive-include name/static * | ||
| recursive-include name/fixtures * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| version: '2' | ||
| services: | ||
| mariadb: | ||
| image: mariadb:10.5 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=68", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "django-name" | ||
| description = "Name Authority App for Django." | ||
| readme = "README.md" | ||
| version = "5.0.0" | ||
| license = {file = 'LICENSE'} | ||
| keywords = ["django", "name", "citation"] | ||
| requires-python = ">=3.9,<4.0" | ||
| authors = [ | ||
| { name = "University of North Texas Libraries", email = "mark.phillips@unt.edu" } | ||
| ] | ||
| classifiers = [ | ||
| "Environment :: Web Environment", | ||
| "Framework :: Django", | ||
| "Intended Audience :: End Users/Desktop", | ||
| "Natural Language :: English", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Topic :: Internet :: WWW/HTTP :: WSGI :: Application" | ||
| ] | ||
| dependencies = [ | ||
| "python-dateutil==2.7.3", | ||
| "markdown2>=2.4.0", | ||
| "djangorestframework~=3.15.2", | ||
| "pynaco @ git+https://github.com/unt-libraries/pynaco", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/unt-libraries/django-name" | ||
| Repository = "https://github.com/unt-libraries/django-name" | ||
|
|
||
|
|
||
| [project.optional-dependencies] | ||
| codestyle = ["flake8"] | ||
| dev = [ | ||
| "Django==4.2.27", | ||
| "django-debug-toolbar==3.8.1", | ||
| "mysqlclient==2.0.1", | ||
| ] | ||
| test = [ | ||
| "tox>=3.3.0", | ||
| "markdown2>=2.4.0", | ||
| "pytest>=7.1.0", | ||
| "pytest-django>=4.6.2", | ||
| "pytest-cov>=7.0.0", | ||
| "psycopg2-binary>=2.9.9", | ||
| "tomli>=2.0.1", | ||
| ] | ||
|
|
||
| [tool.tox] | ||
| legacy_tox_ini =''' | ||
| [tox] | ||
| envlist = | ||
| py39-django42-{postgres,mariadb}, | ||
| py39-flake8, | ||
| docs | ||
|
|
||
| [testenv] | ||
| passenv = DB_* | ||
| allowlist_externals = ./runtests.py | ||
| extras = | ||
| test | ||
| dev | ||
| codestyle | ||
| commands = | ||
| mariadb: ./runtests.py {posargs} --nolint --ds=tests.settings.test_mariadb | ||
| postgres: ./runtests.py {posargs} --nolint --ds=tests.settings.test_postgres | ||
|
|
||
| [testenv:py39-django42-mariadb] | ||
| commands = | ||
| ./runtests.py {posargs} --nolint --ds=tests.settings.test_mariadb --cov=name | ||
| allowlist_externals = ./runtests.py | ||
|
|
||
| [testenv:py39-flake8] | ||
| commands = | ||
| ./runtests.py --lintonly | ||
| allowlist_externals = ./runtests.py | ||
|
|
||
| [testenv:docs] | ||
| deps = Sphinx>=4.0 | ||
| changedir = docs | ||
| commands = {envbindir}/sphinx-build -W -b html . {envtmpdir}/html | ||
| ''' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.