Skip to content

Commit

Permalink
Update package metadata (#713)
Browse files Browse the repository at this point in the history
* Update package metadata

* move PyPy to GitHub Actions

* more correct
  • Loading branch information
ofek authored Feb 25, 2022
1 parent 8947896 commit 3ce91c9
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 13 deletions.
9 changes: 0 additions & 9 deletions .azure-pipelines/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,12 @@ jobs:
Py27:
PYTHON_VERSION: "2.7"
TOXENV: "py27"
Py36:
PYTHON_VERSION: "3.6"
TOXENV: "py36"
Py37:
PYTHON_VERSION: "3.7"
TOXENV: "py37"
Py38:
PYTHON_VERSION: "3.8"
TOXENV: "py38"
Pypy2:
PYTHON_VERSION: "pypy2"
TOXENV: "pypy2"
Pypy3:
PYTHON_VERSION: "pypy3"
TOXENV: "pypy3"
Format:
PYTHON_VERSION: "3.8"
TOXENV: "black"
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: test

on:
push:
branches:
- master
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
run:
name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['pypy-2.7', 'pypy-3.8']
# os: [ubuntu-latest, windows-latest, macos-latest]
# python-version: ['2.7', '3.7', '3.8', '3.9', '3.10', 'pypy-2.7', 'pypy-3.8']

env:
TOXENV: ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install tox
run: pip install tox

- name: Run unit tests
run: tox

- name: Run integration tests on cassettes
run: tox -e integration -- --vcr-record=none

- name: Run admin integration tests on cassettes
run: tox -e integration-admin -- --vcr-record=none
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

52 changes: 52 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[build-system]
requires = ["hatchling>=0.15.0"]
build-backend = "hatchling.build"

[project]
name = "datadog"
description = "The Datadog Python library"
readme = "README.md"
license = "BSD-3-Clause"
requires-python = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*"
keywords = [
"datadog",
]
authors = [
{ name = "Datadog, Inc.", email = "[email protected]" },
]
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
'Programming Language :: Python :: Implementation :: CPython',
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"requests>=2.6.0",
"typing; python_version < '3.5'",
"configparser<5; python_version < '3.0'",
]
dynamic = ["version"]

[project.urls]
"Bug Tracker" = "https://github.com/DataDog/datadogpy/issues"
Documentation = "https://datadogpy.readthedocs.io/en/latest/"
"Source Code" = "https://github.com/DataDog/datadogpy"

[project.scripts]
dog = "datadog.dogshell:main"
dogwrap = "datadog.dogshell.wrap:main"
dogshell = "datadog.dogshell:main"
dogshellwrap = "datadog.dogshell.wrap:main"

[tool.hatch.version]
path = "datadog/version.py"

[tool.hatch.build.targets.sdist]
include = [
"/datadog",
"/tests",
]
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
minversion = 3.7.0
skip_missing_interpreters = true
envlist =
py{27,35,36,37,38,py2,py3}
py{27,37,38,py-2.7,py-3.8}
flake8
integration
mypy
Expand Down

0 comments on commit 3ce91c9

Please sign in to comment.