diff --git a/LICENSE b/LICENSE index cce56b9..6d2afc9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ -The MIT License (MIT) +MIT -Copyright (c) 2020 knod +Copyright (c) 2026 knod Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/MANIFEST.in b/MANIFEST.in index bb3ec5f..f70fb2d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,17 @@ include README.md +graft docassemble/juvenilesealing/data +recursive-exclude * *.egg-info +recursive-exclude .git * +recursive-exclude venv * +recursive-exclude .github * +recursive-exclude .pytest_cache * +recursive-exclude .vscode * +recursive-exclude build * +recursive-exclude dist * +recursive-exclude * __pycache__ +recursive-exclude * *.pyc +recursive-exclude * *.pyo +recursive-exclude * *.orig +recursive-exclude * *~ +recursive-exclude * *.bak +recursive-exclude * *.swp diff --git a/docassemble/juvenilesealing/__init__.py b/docassemble/juvenilesealing/__init__.py index e92195d..cd7ca49 100644 --- a/docassemble/juvenilesealing/__init__.py +++ b/docassemble/juvenilesealing/__init__.py @@ -1 +1 @@ -__version__ = '0.0.117' +__version__ = '1.0.1' diff --git a/docassemble/juvenilesealing/data/questions/sealing-body.yml b/docassemble/juvenilesealing/data/questions/sealing-body.yml index 14ceabc..3747205 100644 --- a/docassemble/juvenilesealing/data/questions/sealing-body.yml +++ b/docassemble/juvenilesealing/data/questions/sealing-body.yml @@ -335,24 +335,24 @@ attachment: filename: ${atch_name} pdf template file: sealing-form.pdf fields: - - "applicant.no_delinquency": 'Yes' - - "applicant.name.last": '' - - "applicant.name.first": '' - - "applicant.name.middle": '' - - "applicant.dob": '' - - "applicant.alias": '' - - "applicant.address": '' - - "applicant.city": '' - - "applicant.state": '' - - "applicant.zip": '' - - "applicant.occupation": '' - - "applicant.ssn": '' - - "applicant.place_of_birth": '' - - "applicant.fathers_name": '' - - "applicant.mothers_maiden_name": '' - - "applicant.spouses_name": '' + - "applicant_no_delinquency": 'Yes' + - "applicant_name_last": 'a name' + - "applicant_name_first": '' + - "applicant_name_middle": '' + - "applicant_dob": '' + - "applicant_alias": '' + - "applicant_address": '' + - "applicant_city": '' + - "applicant_state": '' + - "applicant_zip": '' + - "applicant_occupation": '' + - "applicant_ssn": '' + - "applicant_place_of_birth": '' + - "applicant_fathers_name": '' + - "applicant_mothers_maiden_name": '' + - "applicant_spouses_name": '' - "signature_always": '' - - "checkboxes.juvenile": 'Yes' + - "checkboxes_juvenile": 'Yes' - "signature_juvenile": '' --- id: full_petition @@ -362,24 +362,24 @@ attachment: filename: ${atch_name} pdf template file: sealing-form.pdf fields: - - "applicant.no_delinquency": 'Yes' - - "applicant.name.last": ${applicant.name.last} - - "applicant.name.first": ${applicant.name.first} - - "applicant.name.middle": ${applicant.name.middle} - - "applicant.dob": ${applicant.birthdate} - - "applicant.alias": ${applicant.alias} - - "applicant.address": ${applicant.address.address} - - "applicant.city": ${applicant.address.city} - - "applicant.state": ${applicant.address.state} - - "applicant.zip": ${applicant.address.zip} - - "applicant.occupation": ${applicant.occupation} - - "applicant.ssn": ${applicant.ssn} - - "applicant.place_of_birth": ${applicant.place_of_birth} - - "applicant.fathers_name": ${applicant.fathers_maiden_name} - - "applicant.mothers_maiden_name": ${applicant.mothers_maiden_name} - - "applicant.spouses_name": ${applicant.spouses_name} + - "applicant_no_delinquency": 'Yes' + - "applicant_name_last": ${applicant.name.last} + - "applicant_name_first": ${applicant.name.first} + - "applicant_name_middle": ${applicant.name.middle} + - "applicant_dob": ${applicant.birthdate} + - "applicant_alias": ${applicant.alias} + - "applicant_address": ${applicant.address.address} + - "applicant_city": ${applicant.address.city} + - "applicant_state": ${applicant.address.state} + - "applicant_zip": ${applicant.address.zip} + - "applicant_occupation": ${applicant.occupation} + - "applicant_ssn": ${applicant.ssn} + - "applicant_place_of_birth": ${applicant.place_of_birth} + - "applicant_fathers_name": ${applicant.fathers_maiden_name} + - "applicant_mothers_maiden_name": ${applicant.mothers_maiden_name} + - "applicant_spouses_name": ${applicant.spouses_name} - "signature_always": '' - - "checkboxes.juvenile": 'Yes' + - "checkboxes_juvenile": 'Yes' - "signature_juvenile": '' --- id: suggest_get_records diff --git a/docassemble/juvenilesealing/data/sources/README.md b/docassemble/juvenilesealing/data/sources/README.md index c9261e7..217cfc5 100644 --- a/docassemble/juvenilesealing/data/sources/README.md +++ b/docassemble/juvenilesealing/data/sources/README.md @@ -1,4 +1,4 @@ # Sources directory This directory is used to store word translation files, -machine learning training files, and other source files. +machine learning training files, and other sources of data. diff --git a/docassemble/juvenilesealing/data/templates/sealing-form.pdf b/docassemble/juvenilesealing/data/templates/sealing-form.pdf index e6ee11a..9e14a14 100644 Binary files a/docassemble/juvenilesealing/data/templates/sealing-form.pdf and b/docassemble/juvenilesealing/data/templates/sealing-form.pdf differ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e7d556e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,30 @@ +license = "MIT" +license-files = [ + "LICENSE", +] + +[build-system] +requires = [ + "setuptools==80.9.0", +] +build-backend = "setuptools.build_meta" + +[project] +name = "docassemble.juvenilesealing" +version = "1.0.1" +description = "A docassemble extension for sealing juvenile records." +readme = "README.md" +authors = [ + { name = "knod", email = "lsquery@example.com" }, +] +dependencies = [ + "docassemble.gbls>=0.0.58", +] + +[project.urls] +Homepage = "https://docassemble.org" + +[tool.setuptools.packages.find] +where = [ + ".", +] diff --git a/setup.cfg b/setup.cfg index b88034e..df382b5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [metadata] -description-file = README.md +long_description = file: README.md diff --git a/setup.py b/setup.py index 0da3a2f..3c997ce 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,12 @@ import os import sys -from setuptools import setup, find_packages +from setuptools import setup, find_namespace_packages from fnmatch import fnmatchcase from distutils.util import convert_path standard_exclude = ('*.pyc', '*~', '.*', '*.bak', '*.swp*') standard_exclude_directories = ('.*', 'CVS', '_darcs', './build', './dist', 'EGG-INFO', '*.egg-info') + def find_package_data(where='.', package='', exclude=standard_exclude, exclude_directories=standard_exclude_directories): out = {} stack = [(convert_path(where), '', package)] @@ -43,18 +44,16 @@ def find_package_data(where='.', package='', exclude=standard_exclude, exclude_d return out setup(name='docassemble.juvenilesealing', - version='0.0.117', + version='1.0.1', description=('A docassemble extension for sealing juvenile records.'), - long_description='# Sealing Juvenile Records\r\n\r\nThis process should be easier for both petitioners themselves and\r\nlegal professionals who hope to support petitioners. This tool\r\nis focused on MA.\r\n\r\n## Design\r\n\r\n### MVP should include\r\n\r\n1. Expectation setting.\r\n1. Links to support we cannot provide.\r\n1. Mobile friendly UI.\r\n1. A printable PDF.\r\n\r\n### Interview steps\r\n\r\n1. Check for immigration status **separately from the main interview**\r\n1. Screen for legal professionals\r\n1. Link to get certified dockets\r\n1. Sealing eligibility questions\r\n1. Personal details questions\r\n1. Downloadable/printable pre-filled petition PDF\r\n1. Provide the address for mailing the petition\r\n\r\n## Users\r\n\r\n### Target Audiences\r\n\r\n1. Petitioners.\r\n1. Legal professionals or clinic volunteers.\r\n\r\n### Unresovled Petitioner Barriers\r\n\r\n1. Frustration and distrust of the process.\r\n1. No access to printers.\r\n1. Which vocabulary will they find familiar?\r\n\r\n**User research needs to play a large role in the design of this tool.**\r\n\r\nThis tool is made with [Docassemble](https://github.com/jhpyle/docassemble).\r\n\r\n## Testing\r\n\r\n### Chai/Puppeteer tests\r\n\r\nThe first time you clone this repo, make sure you have NPM installed and run `npm install`.\r\nThis will install the libraries required for testing.\r\n\r\nTo run the tests, run `npm run test`.\r\n\r\n### Aloe/Lettuce tests\r\n\r\nTo get these tests to run, you need to download chromedriver from https://sites.google.com/a/chromium.org/chromedriver/ and put it in `tests/`\r\nYou also need to `pip3 install aloe selenium certifi`\r\n\r\nTo run [a feature test](https://docassemble.org/docs/development.html#bdd):\r\n```\r\ncd tests\r\naloe features/hello_world.feature\r\n```\r\n', + long_description='# Sealing Juvenile Records\r\n\r\nThis process should be easier for both petitioners themselves and\r\nlegal professionals who hope to support petitioners. This tool\r\nis focused on MA.\r\n\r\n## Design\r\n\r\n### MVP should include\r\n\r\n1. Expectation setting.\r\n1. Links to support we cannot provide.\r\n1. Mobile friendly UI.\r\n1. A printable PDF.\r\n\r\n### Interview steps\r\n\r\n1. Check for immigration status **separately from the main interview**\r\n1. Screen for legal professionals\r\n1. Link to get certified dockets\r\n1. Sealing eligibility questions\r\n1. Personal details questions\r\n1. Downloadable/printable pre-filled petition PDF\r\n1. Provide the address for mailing the petition\r\n\r\n## Users\r\n\r\n### Target Audiences\r\n\r\n1. Petitioners.\r\n1. Legal professionals or clinic volunteers.\r\n\r\n### Unresovled Petitioner Barriers\r\n\r\n1. Frustration and distrust of the process.\r\n1. No access to printers.\r\n1. Which vocabulary will they find familiar?\r\n\r\n**User research needs to play a large role in the design of this tool.**\r\n\r\nThis tool is made with [Docassemble](https://github.com/jhpyle/docassemble).\r\n\r\n## Testing\r\n\r\n### Cucumber tests\r\n\r\nTo get these tests to run on your local development machine (e.g., your laptop), make sure you have NPM installed.\r\n\r\nThe first time you run these tests, type `npm install` into your terminal. This will install the packages required for testing.\r\n\r\nTo run the tests, type `npm run local` into your terminal.\r\n\r\nTo run a single test file:\r\n```\r\nnpm run setup\r\n./node_modules/.bin/cucumber-js --require ./node_modules/docassemble-cucumber/lib/index.js tests/features/TEST_NAME.feature\r\nnpm run takedown\r\n```\r\n', long_description_content_type='text/markdown', author='knod', author_email='lsquery@example.com', - license='The MIT License (MIT)', + license='MIT', url='https://docassemble.org', - packages=find_packages(), - namespace_packages=['docassemble'], - install_requires=['docassemble.gbls'], + packages=find_namespace_packages(), + install_requires=['docassemble.gbls>=0.0.58'], zip_safe=False, package_data=find_package_data(where='docassemble/juvenilesealing/', package='docassemble.juvenilesealing'), ) -