Skip to content

Commit ec4462e

Browse files
committed
root, req
1 parent cca6ea7 commit ec4462e

File tree

7 files changed

+72
-61
lines changed

7 files changed

+72
-61
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ repos:
1616
- id: check-yaml
1717
- id: end-of-file-fixer
1818
- id: trailing-whitespace
19-
exclude: '\.(rst|txt)$'
19+
- id: check-case-conflict
20+
- id: check-merge-conflict
21+
- id: check-toml
22+
- id: check-added-large-files
2023
- repo: https://github.com/psf/black
2124
rev: 24.4.2
2225
hooks:

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Authors
22
=======
33

4-
Billinge Group and community contibutors.
4+
Billinge Group and community contributors.
55

66
Contributors
77
------------

MANIFEST.in

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
include AUTHORS.rst
2-
include LICENSE
3-
include README.rst
4-
include requirements.txt
5-
6-
recursive-exclude * __pycache__
7-
recursive-exclude * *.py[co]
8-
9-
recursive-include docs *.rst conf.py Makefile make.bat
10-
11-
include versioneer.py
12-
include diffpy.pdfmorph/_version.py
13-
14-
# If including data files in the package, add them like:
15-
# include path/to/data_file
1+
graft src
2+
graft tests
3+
graft requirements
4+
5+
include AUTHORS.rst LICENSE*.rst README.rst
6+
7+
# Exclude all bytecode files and __pycache__ directories
8+
global-exclude *.py[cod] # Exclude all .pyc, .pyo, and .pyd files.
9+
global-exclude .DS_Store # Exclude Mac filesystem artifacts.
10+
global-exclude __pycache__ # Exclude Python cache directories.
11+
global-exclude .git* # Exclude git files and directories.
12+
global-exclude .idea # Exclude PyCharm project settings.

doc/make.bat

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
@ECHO OFF
2-
3-
pushd %~dp0
4-
5-
REM Command file for Sphinx documentation
6-
7-
if "%SPHINXBUILD%" == "" (
8-
set SPHINXBUILD=sphinx-build
9-
)
10-
set SOURCEDIR=source
11-
set BUILDDIR=build
12-
set SPHINXPROJ=PackagingScientificPython
13-
14-
if "%1" == "" goto help
15-
16-
%SPHINXBUILD% >NUL 2>NUL
17-
if errorlevel 9009 (
18-
echo.
19-
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
20-
echo.installed, then set the SPHINXBUILD environment variable to point
21-
echo.to the full path of the 'sphinx-build' executable. Alternatively you
22-
echo.may add the Sphinx directory to PATH.
23-
echo.
24-
echo.If you don't have Sphinx installed, grab it from
25-
echo.http://sphinx-doc.org/
26-
exit /b 1
27-
)
28-
29-
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
30-
goto end
31-
32-
:help
33-
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
34-
35-
:end
36-
popd
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
set SPHINXPROJ=PackagingScientificPython
13+
14+
if "%1" == "" goto help
15+
16+
%SPHINXBUILD% >NUL 2>NUL
17+
if errorlevel 9009 (
18+
echo.
19+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
20+
echo.installed, then set the SPHINXBUILD environment variable to point
21+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
22+
echo.may add the Sphinx directory to PATH.
23+
echo.
24+
echo.If you don't have Sphinx installed, grab it from
25+
echo.http://sphinx-doc.org/
26+
exit /b 1
27+
)
28+
29+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
30+
goto end
31+
32+
:help
33+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
34+
35+
:end
36+
popd

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=62.0", "setuptools-git-versioning<2"]
2+
requires = ["setuptools>=62.0", "setuptools-git-versioning>=2.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "diffpy.pdfmorph"
7-
dynamic=['version']
7+
dynamic=['version', 'dependencies']
88
authors = [
99
{ name="Simon J.L. Billinge group", email="[email protected]" },
1010
]
@@ -37,10 +37,7 @@ pdfmorph = "diffpy.pdfmorph.pdfmorphapp:main"
3737

3838
[project.urls]
3939
Homepage = "https://github.com/diffpy/diffpy.pdfmorph/"
40-
Issues = "https://github.com/diffpy/diffpy.pdfmorph/issues"
41-
42-
[tool.pytest.ini_options]
43-
pythonpath = ["src"]
40+
Issues = "https://github.com/diffpy/diffpy.pdfmorph/issues/"
4441

4542
[tool.setuptools-git-versioning]
4643
enabled = true
@@ -51,9 +48,12 @@ dirty_template = "{tag}"
5148
[tool.setuptools.packages.find]
5249
where = ["src"] # list of folders that contain the packages (["."] by default)
5350
include = ["*"] # package names should match these glob patterns (["*"] by default)
54-
exclude = ["diffpy.pdfmorph.tests*"] # exclude packages matching these glob patterns (empty by default)
51+
exclude = ["tests"] # exclude packages matching these glob patterns (empty by default)
5552
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
5653

54+
[tool.setuptools.dynamic]
55+
dependencies = {file = ["requirements/run.txt"]}
56+
5757
[tool.black]
5858
line-length = 115
5959
include = '\.pyi?$'

requirements/README.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# YOU MAY DELETE THIS FILE AFTER SETTING UP DEPENDENCIES!
2+
#
3+
# This directory is where you should place your project dependencies.
4+
# "pip.txt" should contain all required packages not available on conda.
5+
# All other files should contain only packages available to download from conda.
6+
# build.txt should contain all packages required to build (not run) the project.
7+
# run.txt should contain all packages (including optional packages) required for a user to run the program.
8+
# test.txt should contain all packages required for the testing suite and to ensure all tests pass.
9+
# docs.txt should contain all packages required for building the package documentation page.
10+
#
11+
# YOU MAY DELETE THIS FILE AFTER SETTING UP DEPENDENCIES!

requirements/run.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
numpy
22
scipy
33
diffpy.utils
4-
matplotlib-base
4+
matplotlib
55
bg-mpl-stylesheets

0 commit comments

Comments
 (0)