Skip to content

Commit

Permalink
prepare for moving module to src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Jul 10, 2022
1 parent 5abca78 commit 9083361
Show file tree
Hide file tree
Showing 11 changed files with 96 additions and 367 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
- name: Lint with flake8
run: |-
# stop the build if there are Python syntax errors or undefined names
flake8 ./xdoctest --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 ./src/xdoctest --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Typecheck with mypy
run: |-
python -m pip install mypy
mypy --install-types --non-interactive ./xdoctest
mypy ./xdoctest
mypy --install-types --non-interactive ./src/xdoctest
mypy ./src/xdoctest
build_and_test_sdist:
name: Test sdist Python 3.8
runs-on: ubuntu-latest
Expand Down Expand Up @@ -100,7 +100,6 @@ jobs:
- macOS-latest
python-version:
- '2.7'
#- '3.4'
- '3.5'
- '3.6'
- '3.7'
Expand Down Expand Up @@ -317,6 +316,7 @@ jobs:
echo "GPG_KEYID = '$GPG_KEYID'"
DO_GPG=True GPG_KEYID=$GPG_KEYID TWINE_REPOSITORY_URL=${TWINE_REPOSITORY_URL} TWINE_PASSWORD=$TWINE_PASSWORD TWINE_USERNAME=$TWINE_USERNAME GPG_EXECUTABLE=$GPG_EXECUTABLE DO_UPLOAD=True DO_TAG=False ./publish.sh
###
# Unfortunately we cant (yet) use the yaml docstring trick here
# https://github.community/t/allow-unused-keys-in-workflow-yaml-files/172120
Expand All @@ -334,4 +334,4 @@ jobs:
# --secret=EROTEMIC_TWINE_USERNAME=$EROTEMIC_TWINE_USERNAME \
# --secret=EROTEMIC_CI_SECRET=$EROTEMIC_CI_SECRET \
# --secret=EROTEMIC_TEST_TWINE_USERNAME=$EROTEMIC_TEST_TWINE_USERNAME \
# --secret=EROTEMIC_TEST_TWINE_PASSWORD=$EROTEMIC_TEST_TWINE_PASSWORD
# --secret=EROTEMIC_TEST_TWINE_PASSWORD=$EROTEMIC_TEST_TWINE_PASSWORD
281 changes: 0 additions & 281 deletions dev/_travis_CI_old.yml

This file was deleted.

14 changes: 0 additions & 14 deletions dev/make_strict_req.sh

This file was deleted.

39 changes: 37 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,48 @@ ignore_missing_imports = true
tags = [ "erotemic", "github", "purepy",]
mod_name = "xdoctest"
repo_name = "xdoctest"
rel_mod_parent_dpath = "."
rel_mod_parent_dpath = "./src"
os = [ "all", "win", "linux", "osx",]
min_python = 2.7
author = "Jon Crall"
author_email = "erotemic@gmail.com"
description = "A module cut from xcookie"
description = "A rewrite of the builtin doctest module"
url = "https://github.com/Erotemic/xdoctest"
license = "Apache 2"
dev_status = "stable"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
'Topic :: Software Development :: Testing',
'Framework :: Pytest',
# This should be interpreted as Apache License v2.0
'License :: OSI Approved :: Apache Software License',
# Supported Python versions
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
]

[tool.xcookie.entry_points]
# the pytest11 entry point makes the plugin available to pytest
pytest11 = [
"xdoctest = xdoctest.plugin",
]
# the console_scripts entry point creates the xdoctest executable
console_scripts = [
"xdoctest = xdoctest.__main__:main",
]


[tool.pytest.ini_options]
addopts = "-p no:doctest --xdoctest --xdoctest-style=google --ignore-glob=setup.py --ignore-glob=dev"
Expand Down

0 comments on commit 9083361

Please sign in to comment.