-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcc7e2a
commit fc5e9d2
Showing
21 changed files
with
588 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ Types of Contributions | |
Report Bugs | ||
~~~~~~~~~~~ | ||
|
||
Report bugs at https://gitlab.com/pymech/mechmat/issues. | ||
Report bugs at https://gitlab.com/mecheng/mechcite/issues. | ||
|
||
If you are reporting a bug, please include: | ||
|
||
|
@@ -38,14 +38,14 @@ and "help wanted" is open to whoever wants to implement it. | |
Write Documentation | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
mechmat could always use more documentation, whether as part of the | ||
official mechmat docs, in docstrings, or even on the web in blog posts, | ||
mechcite could always use more documentation, whether as part of the | ||
official mechcite docs, in docstrings, or even on the web in blog posts, | ||
articles, and such. | ||
|
||
Submit Feedback | ||
~~~~~~~~~~~~~~~ | ||
|
||
The best way to send feedback is to file an issue at https://gitlab.com/pymech/mechmat/issues. | ||
The best way to send feedback is to file an issue at https://gitlab.com/mecheng/mechcite/issues. | ||
|
||
If you are proposing a feature: | ||
|
||
|
@@ -57,17 +57,17 @@ If you are proposing a feature: | |
Get Started! | ||
------------ | ||
|
||
Ready to contribute? Here's how to set up `mechmat` for local development. | ||
Ready to contribute? Here's how to set up `mechcite` for local development. | ||
|
||
1. Fork the `mechmat` repo on Gitlab. | ||
1. Fork the `mechcite` repo on Gitlab. | ||
2. Clone your fork locally:: | ||
|
||
$ git clone [email protected]:your_name_here/mechmat.git | ||
$ git clone [email protected]:your_name_here/mechcite.git | ||
|
||
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development:: | ||
|
||
$ mkvirtualenv mechmat | ||
$ cd mechmat/ | ||
$ mkvirtualenv mechcite | ||
$ cd mechcite/ | ||
$ python setup.py develop | ||
|
||
4. Create a branch for local development:: | ||
|
@@ -79,7 +79,7 @@ Ready to contribute? Here's how to set up `mechmat` for local development. | |
5. When you're done making changes, check that your changes pass flake8 and the | ||
tests, including testing other Python versions with tox:: | ||
|
||
$ flake8 mechmat tests | ||
$ flake8 mechcite tests | ||
$ python setup.py test or py.test | ||
$ tox | ||
|
||
|
@@ -102,7 +102,7 @@ Before you submit a pull request, check that it meets these guidelines: | |
2. If the pull request adds functionality, the docs should be updated. Put | ||
your new functionality into a function with a docstring, and add the | ||
feature to the list in README.rst. | ||
3. The pull request should work for Python 2.7, 3.4, 3.5 and 3.6, and for PyPy. Check | ||
3. The pull request should work for Python 3.7, and for PyPy. Check | ||
https://travis-ci.org/jellespijker/mechmat/pull_requests | ||
and make sure that the tests pass for all supported Python versions. | ||
|
||
|
@@ -111,7 +111,7 @@ Tips | |
|
||
To run a subset of tests:: | ||
|
||
$ py.test tests.test_mechmat | ||
$ py.test tests.test_mechcite | ||
|
||
|
||
Deploying | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
======= | ||
History | ||
======= | ||
|
||
0.1.0 (2019-05-24) | ||
------------------ | ||
|
||
* First release on PyPI. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
.PHONY: clean clean-test clean-pyc clean-build docs help | ||
.DEFAULT_GOAL := help | ||
|
||
define BROWSER_PYSCRIPT | ||
import os, webbrowser, sys | ||
|
||
try: | ||
from urllib import pathname2url | ||
except: | ||
from urllib.request import pathname2url | ||
|
||
webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1]))) | ||
endef | ||
export BROWSER_PYSCRIPT | ||
|
||
define PRINT_HELP_PYSCRIPT | ||
import re, sys | ||
|
||
for line in sys.stdin: | ||
match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line) | ||
if match: | ||
target, help = match.groups() | ||
print("%-20s %s" % (target, help)) | ||
endef | ||
export PRINT_HELP_PYSCRIPT | ||
|
||
BROWSER := python -c "$$BROWSER_PYSCRIPT" | ||
|
||
help: | ||
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) | ||
|
||
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts | ||
|
||
clean-build: ## remove build artifacts | ||
rm -fr build/ | ||
rm -fr dist/ | ||
rm -fr .eggs/ | ||
find . -name '*.egg-info' -exec rm -fr {} + | ||
find . -name '*.egg' -exec rm -f {} + | ||
|
||
clean-pyc: ## remove Python file artifacts | ||
find . -name '*.pyc' -exec rm -f {} + | ||
find . -name '*.pyo' -exec rm -f {} + | ||
find . -name '*~' -exec rm -f {} + | ||
find . -name '__pycache__' -exec rm -fr {} + | ||
|
||
clean-test: ## remove test and coverage artifacts | ||
rm -fr .tox/ | ||
rm -f .coverage | ||
rm -fr htmlcov/ | ||
rm -fr .pytest_cache | ||
|
||
lint: ## check style with flake8 | ||
flake8 mechmat tests | ||
|
||
test: ## run tests quickly with the default Python | ||
py.test | ||
|
||
test-all: ## run tests on every Python version with tox | ||
tox | ||
|
||
coverage: ## check code coverage quickly with the default Python | ||
coverage run --source mechcite -m pytest | ||
coverage report -m | ||
coverage html | ||
$(BROWSER) htmlcov/index.html | ||
|
||
docs: ## generate Sphinx HTML documentation, including API docs | ||
rm -f docs/mechcite.rst | ||
rm -f docs/modules.rst | ||
sphinx-apidoc -o docs/ mechcite | ||
$(MAKE) -C docs clean | ||
$(MAKE) -C docs html | ||
$(BROWSER) docs/_build/html/index.html | ||
|
||
servedocs: docs ## compile the docs watching for changes | ||
watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D . | ||
|
||
release: dist ## package and upload a release | ||
twine upload dist/* | ||
|
||
dist: clean ## builds source and wheel package | ||
python setup.py sdist | ||
python setup.py bdist_wheel | ||
ls -l dist | ||
|
||
install: clean ## install the package to the active Python's site-packages | ||
python setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
======== | ||
mechcite | ||
======== | ||
|
||
|
||
.. image:: https://img.shields.io/pypi/v/mechmat.svg | ||
:target: https://pypi.python.org/pypi/mechcite | ||
|
||
.. image:: https://img.shields.io/travis/jellespijker/mechcite.svg | ||
:target: https://travis-ci.org/jellespijker/mechcite | ||
|
||
.. image:: https://readthedocs.org/projects/mechcite/badge/?version=latest | ||
:target: https://mechcite.readthedocs.io/en/latest/?badge=latest | ||
:alt: Documentation Status | ||
|
||
|
||
.. image:: https://pyup.io/repos/github/jellespijker/mechcite/shield.svg | ||
:target: https://pyup.io/repos/github/jellespijker/mechmat/ | ||
:alt: Updates | ||
|
||
|
||
|
||
Python package for the definition of materials used during mechanical engineering calculations | ||
|
||
|
||
* Free software: MIT license | ||
* Documentation: https://mechcite.readthedocs.io. | ||
|
||
|
||
Features | ||
-------- | ||
|
||
* TODO | ||
|
||
Credits | ||
------- | ||
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template. | ||
|
||
.. _Cookiecutter: https://github.com/audreyr/cookiecutter | ||
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = python -msphinx | ||
SPHINXPROJ = mechcite | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../AUTHORS.rst |
Oops, something went wrong.