-
-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to pyproject.toml * Downgrade pytz
- Loading branch information
Showing
7 changed files
with
110 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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,30 @@ | ||
name: release | ||
|
||
on: | ||
workflow_dispatch: # run manually | ||
push: # run on matching tags | ||
tags: | ||
- '*.*.*' | ||
|
||
jobs: | ||
release-to-pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} | ||
restore-keys: ${{ runner.os }}-pip- | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: Install dependencies | ||
run: | | ||
pip install -U pip setuptools wheel | ||
pip install -U tox | ||
- name: Publish package to PyPI | ||
env: | ||
FLIT_USERNAME: __token__ | ||
FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: tox -e publish |
This file was deleted.
Oops, something went wrong.
This file contains 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 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,66 @@ | ||
[build-system] | ||
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[project] | ||
name = "arrow" | ||
authors = [{name = "Chris Smith", email = "crsmithdev@gmail.com"}] | ||
readme = "README.rst" | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"python-dateutil>=2.7.0", | ||
"types-python-dateutil>=2.8.10", | ||
] | ||
requires-python = ">=3.8" | ||
description = "Better dates & times for Python" | ||
keywords = [ | ||
"arrow", | ||
"date", | ||
"time", | ||
"datetime", | ||
"timestamp", | ||
"timezone", | ||
"humanize", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"dateparser==1.*", | ||
"pre-commit", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-mock", | ||
"pytz==2021.1", | ||
"simplejson==3.*", | ||
] | ||
doc = [ | ||
"doc8", | ||
"sphinx>=7.0.0", | ||
"sphinx-autobuild", | ||
"sphinx-autodoc-typehints", | ||
"sphinx_rtd_theme>=1.3.0", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://arrow.readthedocs.io" | ||
Source = "https://github.com/arrow-py/arrow" | ||
Issues = "https://github.com/arrow-py/arrow/issues" | ||
|
||
[tool.flit.module] | ||
name = "arrow" |
This file contains 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 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