Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 38135f1

Browse files
committedApr 10, 2021
Initial commit after CMS Cookiecutter creation, version 1.5
0 parents  commit 38135f1

35 files changed

+3479
-0
lines changed
 

‎.codecov.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Codecov configuration to make it a bit less noisy
2+
coverage:
3+
status:
4+
patch: false
5+
project:
6+
default:
7+
threshold: 50%
8+
comment:
9+
layout: "header"
10+
require_changes: false
11+
branches: null
12+
behavior: default
13+
flags: null
14+
paths: null

‎.github/CONTRIBUTING.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# How to contribute
2+
3+
We welcome contributions from external contributors, and this document
4+
describes how to merge code changes into this pycc.
5+
6+
## Getting Started
7+
8+
* Make sure you have a [GitHub account](https://github.com/signup/free).
9+
* [Fork](https://help.github.com/articles/fork-a-repo/) this repository on GitHub.
10+
* On your local machine,
11+
[clone](https://help.github.com/articles/cloning-a-repository/) your fork of
12+
the repository.
13+
14+
## Making Changes
15+
16+
* Add some really awesome code to your local fork. It's usually a [good
17+
idea](http://blog.jasonmeridth.com/posts/do-not-issue-pull-requests-from-your-master-branch/)
18+
to make changes on a
19+
[branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/)
20+
with the branch name relating to the feature you are going to add.
21+
* When you are ready for others to examine and comment on your new feature,
22+
navigate to your fork of pycc on GitHub and open a [pull
23+
request](https://help.github.com/articles/using-pull-requests/) (PR). Note that
24+
after you launch a PR from one of your fork's branches, all
25+
subsequent commits to that branch will be added to the open pull request
26+
automatically. Each commit added to the PR will be validated for
27+
mergability, compilation and test suite compliance; the results of these tests
28+
will be visible on the PR page.
29+
* If you're providing a new feature, you must add test cases and documentation.
30+
* When the code is ready to go, make sure you run the test suite using pytest.
31+
* When you're ready to be considered for merging, check the "Ready to go"
32+
box on the PR page to let the pycc devs know that the changes are complete.
33+
The code will not be merged until this box is checked, the continuous
34+
integration returns checkmarks,
35+
and multiple core developers give "Approved" reviews.
36+
37+
# Additional Resources
38+
39+
* [General GitHub documentation](https://help.github.com/)
40+
* [PR best practices](http://codeinthehole.com/writing/pull-requests-and-other-good-practices-for-teams-using-github/)
41+
* [A guide to contributing to software packages](http://www.contribution-guide.org)
42+
* [Thinkful PR example](http://www.thinkful.com/learn/github-pull-request-tutorial/#Time-to-Submit-Your-First-PR)

‎.github/PULL_REQUEST_TEMPLATE.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Description
2+
Provide a brief description of the PR's purpose here.
3+
4+
## Todos
5+
Notable points that this PR has either accomplished or will accomplish.
6+
- [ ] TODO 1
7+
8+
## Questions
9+
- [ ] Question1
10+
11+
## Status
12+
- [ ] Ready to go

‎.github/workflows/CI.yaml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: CI
2+
3+
on:
4+
# GitHub has started calling new repo's first branch "main" https://github.com/github/renaming
5+
# Existing codes likely still have "master" as the primary branch
6+
# Both are tracked here to keep legacy and new codes working
7+
push:
8+
branches:
9+
- "master"
10+
- "main"
11+
pull_request:
12+
branches:
13+
- "master"
14+
- "main"
15+
schedule:
16+
# Nightly tests run on master by default:
17+
# Scheduled workflows run on the latest commit on the default or base branch.
18+
# (from https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)
19+
- cron: "0 0 * * *"
20+
21+
jobs:
22+
test:
23+
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
24+
runs-on: ${{ matrix.os }}
25+
strategy:
26+
matrix:
27+
os: [macOS-latest, ubuntu-latest, windows-latest]
28+
python-version: [3.7, 3.8, 3.9]
29+
30+
steps:
31+
- uses: actions/checkout@v1
32+
33+
- name: Additional info about the build
34+
shell: bash
35+
run: |
36+
uname -a
37+
df -h
38+
ulimit -a
39+
40+
41+
# More info on options: https://github.com/conda-incubator/setup-miniconda
42+
- uses: conda-incubator/setup-miniconda@v2
43+
with:
44+
python-version: ${{ matrix.python-version }}
45+
environment-file: devtools/conda-envs/test_env.yaml
46+
47+
channels: conda-forge,defaults
48+
49+
activate-environment: test
50+
auto-update-conda: false
51+
auto-activate-base: false
52+
show-channel-urls: true
53+
54+
- name: Install package
55+
56+
# conda setup requires this special shell
57+
shell: bash -l {0}
58+
run: |
59+
python -m pip install . --no-deps
60+
conda list
61+
62+
63+
- name: Run tests
64+
65+
# conda setup requires this special shell
66+
shell: bash -l {0}
67+
68+
run: |
69+
pytest -v --cov=pycc --cov-report=xml --color=yes pycc/tests/
70+
71+
- name: CodeCov
72+
uses: codecov/codecov-action@v1
73+
with:
74+
file: ./coverage.xml
75+
flags: unittests
76+
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}

‎.gitignore

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
.pytest_cache
45+
nosetests.xml
46+
coverage.xml
47+
*.cover
48+
.hypothesis/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
58+
# Flask stuff:
59+
instance/
60+
.webassets-cache
61+
62+
# Scrapy stuff:
63+
.scrapy
64+
65+
# Sphinx documentation
66+
docs/_build/
67+
68+
# PyBuilder
69+
target/
70+
71+
# Jupyter Notebook
72+
.ipynb_checkpoints
73+
74+
# pyenv
75+
.python-version
76+
77+
# celery beat schedule file
78+
celerybeat-schedule
79+
80+
# SageMath parsed files
81+
*.sage.py
82+
83+
# dotenv
84+
.env
85+
86+
# virtualenv
87+
.venv
88+
venv/
89+
ENV/
90+
91+
# Spyder project settings
92+
.spyderproject
93+
.spyproject
94+
95+
# Rope project settings
96+
.ropeproject
97+
98+
# mkdocs documentation
99+
/site
100+
101+
# mypy
102+
.mypy_cache/
103+
104+
# profraw files from LLVM? Unclear exactly what triggers this
105+
# There are reports this comes from LLVM profiling, but also Xcode 9.
106+
*profraw

‎.lgtm.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Configure LGTM for this package
2+
3+
extraction:
4+
python: # Configure Python
5+
python_setup: # Configure the setup
6+
version: 3 # Specify Version 3
7+
path_classifiers:
8+
library:
9+
- versioneer.py # Set Versioneer.py to an external "library" (3rd party code)
10+
- devtools/*
11+
generated:
12+
- pycc/_version.py

‎CODE_OF_CONDUCT.md

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age,
8+
body size, disability, ethnicity, gender identity and expression, level of
9+
experience, nationality, personal appearance, race, religion, or sexual
10+
identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment include:
15+
16+
* Using welcoming and inclusive language
17+
* Being respectful of differing viewpoints and experiences
18+
* Gracefully accepting constructive criticism
19+
* Focusing on what is best for the community
20+
* Showing empathy towards other community members
21+
22+
Examples of unacceptable behavior by participants include:
23+
24+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
25+
* Trolling, insulting/derogatory comments, and personal or political attacks
26+
* Public or private harassment
27+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
28+
* Other conduct which could reasonably be considered inappropriate in a professional setting
29+
30+
## Our Responsibilities
31+
32+
Project maintainers are responsible for clarifying the standards of acceptable
33+
behavior and are expected to take appropriate and fair corrective action in
34+
response to any instances of unacceptable behavior.
35+
36+
Project maintainers have the right and responsibility to remove, edit, or
37+
reject comments, commits, code, wiki edits, issues, and other contributions
38+
that are not aligned to this Code of Conduct, or to ban temporarily or
39+
permanently any contributor for other behaviors that they deem inappropriate,
40+
threatening, offensive, or harmful.
41+
42+
Moreover, project maintainers will strive to offer feedback and advice to
43+
ensure quality and consistency of contributions to the code. Contributions
44+
from outside the group of project maintainers are strongly welcomed but the
45+
final decision as to whether commits are merged into the codebase rests with
46+
the team of project maintainers.
47+
48+
## Scope
49+
50+
This Code of Conduct applies both within project spaces and in public spaces
51+
when an individual is representing the project or its community. Examples of
52+
representing a project or community include using an official project e-mail
53+
address, posting via an official social media account, or acting as an
54+
appointed representative at an online or offline event. Representation of a
55+
project may be further defined and clarified by project maintainers.
56+
57+
## Enforcement
58+
59+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
60+
reported by contacting the project team at 'crawdad@vt.edu'. The project team will
61+
review and investigate all complaints, and will respond in a way that it deems
62+
appropriate to the circumstances. The project team is obligated to maintain
63+
confidentiality with regard to the reporter of an incident. Further details of
64+
specific enforcement policies may be posted separately.
65+
66+
Project maintainers who do not follow or enforce the Code of Conduct in good
67+
faith may face temporary or permanent repercussions as determined by other
68+
members of the project's leadership.
69+
70+
## Attribution
71+
72+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
73+
version 1.4, available at
74+
[http://contributor-covenant.org/version/1/4][version]
75+
76+
[homepage]: http://contributor-covenant.org
77+
[version]: http://contributor-covenant.org/version/1/4/

‎LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
Copyright 2021 T Daniel Crawford
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
5+
following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8+
9+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
10+
disclaimer in the documentation and/or other materials provided with the distribution.
11+
12+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
13+
products derived from this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
16+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
20+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
21+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

‎MANIFEST.in

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include LICENSE
2+
include MANIFEST.in
3+
include CODE_OF_CONDUCT.md
4+
include versioneer.py
5+
6+
graft pycc
7+
global-exclude *.py[cod] __pycache__ *.so

‎README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
PyCC
2+
==============================
3+
[//]: # (Badges)
4+
[![GitHub Actions Build Status](https://github.com/REPLACE_WITH_OWNER_ACCOUNT/pycc/workflows/CI/badge.svg)](https://github.com/REPLACE_WITH_OWNER_ACCOUNT/pycc/actions?query=workflow%3ACI)
5+
[![codecov](https://codecov.io/gh/REPLACE_WITH_OWNER_ACCOUNT/PyCC/branch/master/graph/badge.svg)](https://codecov.io/gh/REPLACE_WITH_OWNER_ACCOUNT/PyCC/branch/master)
6+
7+
8+
A Python-based coupled cluster implementation.
9+
10+
### Copyright
11+
12+
Copyright (c) 2021, T Daniel Crawford
13+
14+
15+
#### Acknowledgements
16+
17+
Project based on the
18+
[Computational Molecular Science Python Cookiecutter](https://github.com/molssi/cookiecutter-cms) version 1.5.

0 commit comments

Comments
 (0)
Please sign in to comment.