Skip to content
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

Replace setuptools/setup.py with PEP621 metadata and flit #14

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
- package-ecosystem: github-actions
# Workflow files in .github/workflows will be checked
directory: "/"
schedule:
interval: "daily"
interval: daily
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: later_ci
name: later

on: [push, pull_request]

jobs:
build:
name: Running python ${{ matrix.python-version }} on ${{matrix.os}}
name: test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', 3.11]
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v4
Expand All @@ -19,17 +20,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: update pip + setuptools
- name: update pip
run: |
python -m pip install --upgrade coverage pip setuptools

- name: pip install requirements
run: |
python -m pip install -r requirements.txt
python -m pip install --upgrade pip

- name: pip install later
run: |
python -m pip install -e .
python -m pip install -e .[dev]

- name: Run Unitests via coverage
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ target/
#Ipython Notebook
.ipynb_checkpoints

.python-version
.venv
.venv37
.mypy_cache
2 changes: 2 additions & 0 deletions later/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.

"""A toolbox for asyncio services"""

from async_timeout import timeout

from .event import BiDirectionalEvent
Expand Down
39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[build-system]
requires = ["flit-core >= 3.8"]
build-backend = "flit_core.buildapi"

[project]
name = "later"
dynamic = ["version", "description"]
readme = "README.rst"
authors = [
{name="Meta Platforms, Inc"},
{name="Jason Fried", email="[email protected]"},
]
license = {file="LICENSE"}
keywords = ["asyncio", "later"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Testing",
]

requires-python = ">=3.7"
dependencies = [
"async-timeout >= 2.0.0, < 5.0.0",
]

[project.optional-dependencies]
dev = [
"async-timeout==3.0.1",
"coverage==4.5.4",
]

[project.urls]
Github = "https://github.com/facebookincubator/later"
2 changes: 0 additions & 2 deletions requirements-dev.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[metadata]
license_file = LICENSE

[tox:tox]
envlist = py37, py37-minimal, py38

Expand Down
74 changes: 0 additions & 74 deletions setup.py

This file was deleted.