Skip to content

Commit

Permalink
Scrapi src rework
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Marlow committed Aug 10, 2021
1 parent f19eeef commit 7252a78
Show file tree
Hide file tree
Showing 31 changed files with 36 additions and 29 deletions.
15 changes: 2 additions & 13 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,10 @@ image: python:3.7.9
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
key: ${CI_JOB_NAME}
paths:
- .cache/pip
- venv/

before_script:
- python -V # Print out python version for debugging
- python -V
- python -m venv venv
- source venv/bin/activate
# - cp config.yaml.example config.yaml

# Job to run if there's nothing to lint or test.
noop:
Expand Down Expand Up @@ -64,6 +52,7 @@ linting:
script:
# - chmod +x tests/license/license_check.sh
# - tests/license/license_check.sh
- pip install --upgrade pip
- pip install pylint==2.8.3
- pylint --jobs=0 $(git ls-files '*.py')

Expand Down
6 changes: 0 additions & 6 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ jobs=4
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no

# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-whitelist=


[MESSAGES CONTROL]

# Only show warnings with the listed confidence levels. Leave empty to show
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ exclude = '''


# Build system information below.
# NOTE: You don't need this in your own Black configuration.

[build-system]
requires = ["setuptools>=41.0", "setuptools-scm", "wheel"]
requires = ["setuptools>=42", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"

7 changes: 2 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[yapf]
ignore = E226,E302
max-line-length = 130


[metadata]
license_files = LICENSE.txt
32 changes: 31 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,36 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import pathlib
from setuptools import setup, find_packages

setup(name="dfcx", packages=find_packages())
here = pathlib.Path(__file__).parent.resolve()

long_description = (here / 'README.md').read_text(encoding='utf-8')

setup(
name='dfcx-scrapi',
version='1.0.0',
description='A high level scripting API for bot builders, developers, and\
maintainers.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/GoogleCloudPlatform/dfcx-scrapi',
author='Patrick Marlow',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Bot Building',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
keywords='dialogflow, cx, google, bot, chatbot, intent, dfcx, entity',
package_dir={'':'src'},
packages=find_packages(where='src'),
python_requires='>=3.6, <4',
install_requires=['google-cloud-dialogflow-cx']
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7252a78

Please sign in to comment.