Skip to content

Commit 0b5e4ab

Browse files
authored
Merge pull request #3 from josephjcontreras/core
Merge core branch restructuring core items
2 parents 4d17d9b + cb4351b commit 0b5e4ab

25 files changed

Lines changed: 596 additions & 391 deletions

.flake8

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[flake8]
2+
ignore =
3+
W503, # line break before binary operator
4+
E731, # do not assign a lambda expression, use a def
5+
E203, # whitespace before ':'
6+
7+
exclude =
8+
.git
9+
docs
10+
__pycache__
11+
.mypy_cache
12+
.pytest_cache
13+
env
14+
htmlcov
15+
16+
max-complexity = 10
17+
max-line-length = 88

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ htmlcov/*
2323

2424
# ignore build files for docs
2525
docs/build/*
26+
27+
# ignore type checking cache
28+
**/.mypy_cache/*

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
femethods

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: python
33
python: 3.7.0
44
install:
55
- pip install -r requirements_dev.txt
6-
- pip install -e .
6+
77
script:
88
- pytest
99
after_success:

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# Change Log
22

3+
## v0.1.7a2
4+
- Move common/private functionality into core module
5+
- Add some type hints for mypy
6+
- Restructure tests to use pytest fixtures and parametrized tests
7+
- Add make commands for building and publishing to PyPi
8+
39
## v0.1.7a1
410
- Update `Beam.plot` method to allow customization of plots generated
511
- Added tests for `Beam.plot`
612
- Added depreciation warning to `Beam.bending_stress` method
713

8-
### Backwards Incompatible Changes
14+
### Backwards Incompatible Changes
915
- Removed `bending_stress` parameter from `Beam.plot` method
1016

1117

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PACKAGE_NAME=femethods
22

33
.PHONY: install docs lint-html tests
4+
.PHONY: build
45

56
docs:
67
cd docs && make html
@@ -23,3 +24,10 @@ tests:
2324

2425
tests-ci:
2526
pytest --cov-report html --cov=$(PACKAGE_NAME) tests/$(PACKAGE_NAME) -v
27+
28+
build:
29+
python setup.py sdist
30+
python setup.py bdist_wheel
31+
32+
upload:
33+
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

docs/source/intro.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Introduction
44
This is the introduction to FEmethods. It will introduce Finite Element Methods
55
in general, and then give a few examples of how to use FEmethods.
66

7+
The code can be found on `github.com <https://github.com/josephjcontreras/FEmethods>`_
8+
79
Installation
810
------------
911

@@ -12,6 +14,12 @@ FEmethods is hosted on PyPi, so installation is straightforward.
1214
1315
>>>pip install femethods
1416
17+
It can also be installed from source.
18+
.. code-block:: python
19+
20+
>>>git clone https://github.com/josephjcontreras/FEmethods.git
21+
22+
1523
Then to test that the installation worked properly, you can try this simple
1624
example case of a simply supported beam with a single, centered point load.
1725

@@ -44,15 +52,4 @@ example case of a simply supported beam with a single, centered point load.
4452
Force: 50.0
4553
Moment: 0.0
4654
47-
Platform
48-
--------
49-
50-
FEmethods has only been tested on Windows 10, with python 3.7. Further testing
51-
with some linux distros is planned.
52-
53-
54-
Finite Element Methods
55-
----------------------
5655
57-
Include a brief intro to general finite element methods. Generally, how it works
58-
what are some advantages and disadvantages, etc.

femethods/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__name__ = "femethods"
2-
__version__ = "0.1.7a1"
2+
__version__ = "0.1.7a2"
33
__author__ = "Joseph Contreras Jr."
44
__license__ = "MIT"
5-
__copyright__ = "Copyright 2019 Joseph Contreras Jr."
5+
__copyright__ = "Copyright 2020 Joseph Contreras Jr."

femethods/_common.py

Lines changed: 0 additions & 155 deletions
This file was deleted.

femethods/core/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)