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

Cookie #12

Merged
merged 29 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6bc687b
pre-commit file
cadenmyers13 Oct 1, 2024
dd57b34
.github files
cadenmyers13 Oct 1, 2024
5012731
diffpy and tests directories
cadenmyers13 Oct 1, 2024
7a44b43
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] Oct 1, 2024
5bff19b
move tests to top level
cadenmyers13 Oct 1, 2024
e554eb1
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] Oct 1, 2024
78f36b1
AUTHORS, MANIFEST, pyproject files
cadenmyers13 Oct 1, 2024
8306ff1
requirements directory
cadenmyers13 Oct 1, 2024
1afd6f9
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] Oct 1, 2024
cbf580a
moving content into tests dir
cadenmyers13 Oct 1, 2024
d02e69e
mod
cadenmyers13 Oct 1, 2024
c807d04
fix pathways in tests
cadenmyers13 Oct 1, 2024
0f6ba85
add fourigui.py
cadenmyers13 Oct 1, 2024
3ab2567
add init file under src
cadenmyers13 Oct 1, 2024
0cc4569
Merge pull request #8 from cadenmyers13/tests
sbillinge Oct 1, 2024
e00394d
Merge pull request #9 from cadenmyers13/modified
sbillinge Oct 1, 2024
7393ed1
remove test dir
cadenmyers13 Oct 1, 2024
c5f2776
remove readme.txt
cadenmyers13 Oct 1, 2024
252a36d
resolve merge conflict
cadenmyers13 Oct 1, 2024
30e9c13
remove README.txt
cadenmyers13 Oct 1, 2024
1d5ea71
Merge pull request #7 from cadenmyers13/cookierelease
sbillinge Oct 1, 2024
2057586
edits for pytest to pass
cadenmyers13 Oct 1, 2024
ae7c21e
add imports to run.txt
cadenmyers13 Oct 1, 2024
3256de9
fix tkinter import
cadenmyers13 Oct 1, 2024
9cd0a7b
change to run headless
cadenmyers13 Oct 1, 2024
e57883c
Merge pull request #10 from cadenmyers13/pytest
sbillinge Oct 1, 2024
7f8bf90
Add news and use pip.txt for pypi packages
bobleesj Oct 3, 2024
659172b
Add pip.txt
bobleesj Oct 3, 2024
d1f2c49
Merge pull request #11 from bobleesj/pip
sbillinge Oct 3, 2024
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
12 changes: 12 additions & 0 deletions .github/workflows/check-news-item.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check for News

on:
pull_request_target:
branches:
- main

jobs:
build:
uses: Billingegroup/release-scripts/.github/workflows/_check-news-item.yml@v0
with:
project: diffpy.fourigui
60 changes: 0 additions & 60 deletions .github/workflows/docs.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/main.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/matrix-and-codecov-on-merge-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
push:
branches:
- main
release:
types:
- prereleased
- published
workflow_dispatch:

jobs:
coverage:
uses: Billingegroup/release-scripts/.github/workflows/_matrix-and-codecov-on-merge-to-main.yml@v0
with:
project: diffpy.fourigui
c_extension: false
headless: true
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/pre-commit.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/publish-docs-on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build and Deploy Docs

on:
release:
types:
- published
workflow_dispatch:

jobs:
docs:
uses: Billingegroup/release-scripts/.github/workflows/_publish-docs-on-release.yml@v0
with:
project: diffpy.fourigui
c_extension: false
16 changes: 16 additions & 0 deletions .github/workflows/tests-on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Tests on PR

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
validate:
uses: Billingegroup/release-scripts/.github/workflows/_tests-on-pr.yml@v0
with:
project: diffpy.fourigui
c_extension: false
headless: true
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: '\.(rst|txt)$'
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
Expand Down
2 changes: 1 addition & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Authors
=======

Billinge Group and community contibutors.
Billinge Group and community contributors.

Contributors
------------
Expand Down
26 changes: 12 additions & 14 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
include AUTHORS.rst
include LICENSE
include README.rst
include requirements.txt

recursive-exclude * __pycache__
recursive-exclude * *.py[co]

recursive-include docs *.rst conf.py Makefile make.bat

include diffpy.fourigui/version.py

# If including data files in the package, add them like:
# include path/to/data_file
graft src
graft tests
graft requirements

include AUTHORS.rst LICENSE*.rst README.rst

# Exclude all bytecode files and __pycache__ directories
global-exclude *.py[cod] # Exclude all .pyc, .pyo, and .pyd files.
global-exclude .DS_Store # Exclude Mac filesystem artifacts.
global-exclude __pycache__ # Exclude Python cache directories.
global-exclude .git* # Exclude git files and directories.
global-exclude .idea # Exclude PyCharm project settings.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Support and Contribute

`Diffpy user group <https://groups.google.com/g/diffpy-users>`_ is the discussion forum for general questions and discussions about the use of diffpy.fourigui. Please join the diffpy.fourigui users community by joining the Google group. The diffpy.fourigui project welcomes your expertise and enthusiasm!

If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.fourigui/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.fourigui/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.fourigui/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.fourigui/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.

Feel free to fork the project and contribute. To install diffpy.fourigui
in a development mode, with its sources being directly used by Python
Expand Down
4 changes: 2 additions & 2 deletions doc/source/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ OPEN SOURCE LICENSE AGREEMENT
=============================
BSD 3-Clause License

Copyright (c) 2024, The Trustees of Columbia University in
Copyright (c) 2024, The Trustees of Columbia University in
the City of New York.
All Rights Reserved.
All Rights Reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
24 changes: 24 additions & 0 deletions news/recut.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* cookiecut to group's Python package standard
* add pip packages under pip.txt

**Security:**

* <news item>
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools>=62.0", "setuptools-git-versioning<2"]
requires = ["setuptools>=62.0", "setuptools-git-versioning>=2.0"]
build-backend = "setuptools.build_meta"

[project]
name = "diffpy.fourigui"
dynamic=['version']
dynamic=['version', 'dependencies']
authors = [
{ name="Simon J.L. Billinge group", email="[email protected]" },
]
Expand Down Expand Up @@ -45,9 +45,12 @@ dirty_template = "{tag}"
[tool.setuptools.packages.find]
where = ["src"] # list of folders that contain the packages (["."] by default)
include = ["*"] # package names should match these glob patterns (["*"] by default)
exclude = ["diffpy.fourigui.tests*"] # exclude packages matching these glob patterns (empty by default)
exclude = [] # exclude packages matching these glob patterns (empty by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)

[tool.setuptools.dynamic]
dependencies = {file = ["requirements/pip.txt"]}

[tool.black]
line-length = 115
include = '\.pyi?$'
Expand Down
11 changes: 0 additions & 11 deletions requirements/README.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements/build.txt
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
python
setuptools
5 changes: 5 additions & 0 deletions requirements/conda.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
h5py
time
tk
matplotlib-base
numpy
5 changes: 5 additions & 0 deletions requirements/pip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
h5py
time
tk
matplotlib
numpy
Empty file removed requirements/run.txt
Empty file.
1 change: 1 addition & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ flake8
pytest
codecov
coverage
pytest-cov
pytest-env
1 change: 0 additions & 1 deletion src/diffpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@
__path__ = extend_path(__path__, __name__)

# End of file

Loading