mirror of
https://github.com/sprockets/sprockets-statsd.git
synced 2024-11-21 11:18:38 +00:00
commit
cfd166c667
5 changed files with 39 additions and 2 deletions
29
.github/workflows/build.yml
vendored
Normal file
29
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Distribution
|
||||
on:
|
||||
push:
|
||||
branches-ignore: ["*"]
|
||||
tags: ["*"]
|
||||
|
||||
jobs:
|
||||
upload-package:
|
||||
name: "Build & upload package"
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.repository == 'sprockets/sprockets-statsd'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.7 # use 3.7 for wheel compatibility
|
||||
- name: Install builder
|
||||
run: |
|
||||
python -m pip install --upgrade build pip setuptools twine
|
||||
- name: Build distributions
|
||||
run: |
|
||||
python -m build --sdist --wheel --outdir dist/ .
|
||||
- name: Upload packages
|
||||
uses: pypa/gh-action-pypi-publish@v1.4.2
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_PASSWORD }}
|
||||
skip_existing: true # just in case...
|
3
pyproject.toml
Normal file
3
pyproject.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
[build-system]
|
||||
requires = ["setuptools>=42"]
|
||||
build-backend = "setuptools.build_meta"
|
|
@ -3,6 +3,7 @@ name = sprockets-statsd
|
|||
version = attr: sprockets_statsd.version
|
||||
description = Asynchronously send metrics to a statsd instance.
|
||||
long_description = file: README.rst
|
||||
long_description_content_type = text/x-rst
|
||||
license = BSD 3-Clause License
|
||||
url = https://sprockets-statsd.readthedocs.io/
|
||||
project_urls:
|
||||
|
@ -13,7 +14,7 @@ author = Dave Shawley
|
|||
author_email = daveshawley@gmail.com
|
||||
classifiers =
|
||||
Development Status :: 1 - Planning
|
||||
Indended Audience :: Developers
|
||||
Intended Audience :: Developers
|
||||
License :: OSI Approved :: BSD License
|
||||
Natural Language :: English
|
||||
Operating System :: OS Independent
|
||||
|
@ -51,6 +52,10 @@ readthedocs =
|
|||
exclude =
|
||||
tests
|
||||
|
||||
[options.package_data]
|
||||
sprockets_statsd =
|
||||
py.typed
|
||||
|
||||
[build_sphinx]
|
||||
build_dir = build/sphinx
|
||||
nitpicky = 1
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
version_info = (0, 0, 0)
|
||||
version_info = (0, 0, 1)
|
||||
version = '.'.join(str(c) for c in version_info)
|
||||
|
|
0
sprockets_statsd/py.typed
Normal file
0
sprockets_statsd/py.typed
Normal file
Loading…
Reference in a new issue